package com.mo.service.impl;

import com.mo.mapper.TProductmapper;
import com.mo.model.TProduct;
import com.mo.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mo
 * version
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    private TProductmapper tProductmapper;

    @Override
    public List<TProduct> getAllOnSaleProduct() {
        return tProductmapper.selectAllOnSaleProduct();
    }
}
